//
//  TMComplaintListCell.m
//  国学培训用户端
//
//  Created by Tao Li on 2018/9/15.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "TMComplaintListCell.h"
#import "TMComplaintModel.h"
@implementation TMComplaintListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(void)setModel:(TMComplaintModel *)model{
    _model = model;
    //1 平台
    if (model.type == 1) {
        self.courseLabel.text = @"平台投诉";
    }else{
        self.courseLabel.text = model.username;
    }
    self.realType.text = [NSString stringWithFormat:@"投诉时间:%@", [SPToolSet stringFromDateString:model.create_time]];
    self.typeLabel.text = [NSString stringWithFormat:@"投诉内容:%@", model.content];
    if (model.remark.length > 0) {
        self.replayLabel.text = [NSString stringWithFormat:@"回复内容:%@", model.remark];
    }else{
        self.replayLabel.hidden = YES;
    }
}
@end
